package com.shxt.model;

import java.util.HashMap;
import java.util.Map;

import com.shxt.pojo.Admin;
import com.shxt.service.AdminService;

public class ValidateAdmin {
	public Admin validate(String adminName,String adminPassword){
		Admin admin = new Admin();
		Map<String,String> mss = new HashMap<String,String>();
		mss.put("AdminName", adminName);
		mss.put("AdminPassword", adminPassword);
		admin = AdminService.getInstance().validateAdmin(mss);
		return admin;
	}
}
